/*
 * HasHeadResult.java
 * classes : com.ruint.master.bean.HasHeadResult
 * @author ruint
 * V 1.0.0
 * Create at 2014-12-1 下午1:02:37
 */
package com.ruint.master.bean;

import com.ruint.core.bean.BaseBean;

/**
 * com.ruint.master.bean.HasHeadResult
 * 
 * @author ruint <br/>
 *         create at 2014-12-1 下午1:02:37
 */
public class HasHeadResult<T> extends BaseBean {
	private static final String TAG = "HasHeadResult";

	private static final long serialVersionUID = 1L;

	private int result;

	private String msg;

	private T data;

	public int getResult() {
		return result;
	}

	public void setResult(int result) {
		this.result = result;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}

	@Override
	public String toString() {
		String toString = null;
		if (data == null) {
			toString = TAG + "[result=" + result + ", msg=" + msg + ",data="
					+ data + "]";
		} else {
			toString = TAG + "[result=" + result + ", msg=" + msg + ",data="
					+ data.toString() + "]";
		}
		return toString;
	}
}
